body {
  margin: 0;
}

:root {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;

  color: #0f0f0f;
  background-color: #f6f6f6;

  overflow: hidden;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

.app-container {
  height: 100vh;
  display: grid;
  grid-template-columns: 3rem repeat(3, 1fr);
  grid-template-areas: "nav side main main";
  column-gap: 1rem;
}

.item-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: color(srgb 0.22 0.195 0.1771);
}

.item-nav img {
  width: 100%;
  margin-top: 0.25em;
}

.item-side {
  grid-area: side;
  place-self: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.item-main {
  grid-area: main;
  place-self: stretch;
}

.date-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "y-label m-label d-label ."
    "y-input m-input d-input t-button"
    "y-input m-input d-input t-button";
  column-gap: 5px;
}

.item-y-label {
  grid-area: y-label;
}

.item-m-label {
  grid-area: m-label;
}

.item-d-label {
  grid-area: d-label;
}

.item-y-input {
  grid-area: y-input;
}

.item-m-input {
  grid-area: m-input;
}

.item-d-input {
  grid-area: d-input;
}

.item-t-button {
  grid-area: t-button;
}

.d-sel-input {
  width: 8ch;
}

.options-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  margin-top: auto;
  background-color: color(srgb 0.2198 0.1952 0.1783);
  border-radius: 1rem;
}

.options-title {
  grid-column: 1 / end;
  justify-self: center;
}

.options-toggle {
  grid-column: 1;
  grid-row-start: auto;
  grid-row-end: auto;
  justify-self: center;
}

.options-label {
  grid-column-start: 2;
  grid-column-end: auto;
  grid-row-start: auto;
  grid-row-end: auto;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: 0.75s;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

input,
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  color: #0f0f0f;
  background-color: #ffffff;
  transition: border-color 0.25s;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

button {
  cursor: pointer;
}

button:hover {
  border-color: #396cd8;
}

button:active {
  border-color: #396cd8;
  background-color: #e8e8e8;
}

input,
button {
  outline: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f6f6f6;
    background-color: #413c37;
  }

  a:hover {
    color: #24c8db;
  }

  input,
  button {
    color: #fff8d6;
    background-color: #37322e98;
  }

  button:hover {
    border-color: #f29950;
  }

  button:active {
    border-color: #f29950;
    background-color: #0f0f0f69;
  }
}

.title {
  text-align: left;
}

.title-rs {
  color: #f29950;
}

.settings-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  border-radius: 1rem;
  margin-bottom: 0.5em;
}

.settings-button:hover,
.settings-button-close {
  background-color: #f299508f;
}

.tooltip {
  position: relative;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 4rem;
  background-color: color(srgb 0.315 0.2695 0.2315);
  color: #b5b5b5;
  border-radius: 6px;
  padding: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  top: 0.25rem;
  left: 105%;
}

.tooltip-text svg {
  margin-right: 0.25rem;
}

.tooltip:hover .tooltip-text {
  animation: 1.5s ttFadeIn;
  visibility: visible;
}

@keyframes ttFadeIn {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
